<%--
  Created by IntelliJ IDEA.
  User: 14274
  Date: 2023/8/15
  Time: 11:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加联系人</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
            box-sizing: border-box;
        }
        .body{
            margin: 0px auto;
            width: 800px;
            height: 800px;
            background-color: aqua;
        }
        .info{
            margin: 0px auto;
            width: 300px;
            height: 500px;
            background-color: blanchedalmond;
        }
        .info form span{
            width: 40px;
            margin-left: 0px;
        }
        .info form input{
            margin-top: 20px;
            width: 200px;
            height: 25px;
        }
        .anniu{
            width: 100px;
            margin: 0px auto;
        }
    </style>
</head>
<body>
<div class="body">
    <div class="info">
        <h1>添加空气质量信息</h1>
        <form id="addform" action="updateAQ" method="post">
            <input type="text" name="id" value="${aqIndex.id}"/>
            <span>检测区域：</span><input type="text" name="districtId" value="${aqIndex.districtId}"/>
            <span>监测日期：</span><input type="text" name="monitorTime" value="${aqIndex.monitorTime}"><br/>
            <span>PM10值：</span><input type="text" name="pm10" value="${aqIndex.pm10}"><br/>
            <span>PM2.5值：</span><input type="text" name="pm25" value="${aqIndex.pm25}"><br/>
            <span>监测站：</span><input type="text" name="monitoringStation" value="${aqIndex.monitoringStation}"><br/>
        </form>
        <div class="anniu">
            <input type="submit" id="add-form" value="提交">
            <input type="reset" value="重置">
        </div>
    </div>
</div>
</body>
</html>
<script src="static/js/jquery-1.12.4.js"></script>
<script>
    $("#add-form").click(function(){
        $("#addform").submit();
    })
</script>
